import request from '../utils/request'
const api_name = '/teacher'
export default {
    //分页获取讲师信息
    getPagedList(page, limit) {
        return request({
            url: `http://39.98.120.230:8080/api/teacher/search/${page}/${limit}`,
            method: 'post',
        })
    },
    //根据id获取讲师详情和主讲课程信息
    getTeacherDetail(id) {
        return request({
            url: `http://39.98.120.230:8080/api/teacher/detailInfo/${id}`,
            method: 'get',
        })
    },
}